FL
tfs 0.3

Ajustar posição de Efeito

Por FlamesAdmin, 17 de jul. de 2016 em Scripts

poketibia
3
777
17 de julho de 2016 às 14:46

Gostaria que o efeito de atk em área ficasse centralizado a quem solta

PJMACIR.gif

 

Código da spell:

Spoiler

elseif spell == "Astonish" then

    doDanoWithProtect(cid, ghostDmg, getThingPosWithDebug(cid), selfArea2, min, max, 548)     --- < efeito do atk
    local eff = 538
    local a = getThingPosWithDebug(cid)
    posi = {x = a.x+1, y = a.y+1, z = a.z}
    addEvent(doSendMagicEffect, 100, posi, eff)

 

Editado Julho 17 por FlamesAdmin

nbb147N
17 de julho de 2016 às 15:02

tente assim:

 

elseif spell == "Astonish" then    doDanoWithProtect(cid, ghostDmg, getThingPosWithDebug(cid), selfArea2, min, max, 548)     --- < efeito é esse    local eff = 538    local a = getThingPosWithDebug(cid)    posi = {x = a.x+2, y = a.y, z = a.z}    addEvent(doSendMagicEffect, 100, posi, eff)

 

17 de julho de 2016 às 20:56

@nbb147

editei ali em cima, errei na explicaçao